package com.joker.orange.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joker.orange.domain.CaricatureChapter;
import com.joker.orange.domain.bo.CaricatureChapterBo;
import com.joker.orange.domain.vo.CaricatureChapterVo;
import com.joker.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 漫画章节Mapper接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface CaricatureChapterMapper extends BaseMapperPlus<CaricatureChapterMapper, CaricatureChapter, CaricatureChapterVo> {

    Page<CaricatureChapterVo> queryPageList(@Param("page") Page<CaricatureChapterVo> page, @Param(Constants.WRAPPER) Wrapper<CaricatureChapter> wrapper);

    List<CaricatureChapterVo> queryPageList(@Param(Constants.WRAPPER) Wrapper<CaricatureChapter> wrapper);

    CaricatureChapterVo selectNextChapterById(CaricatureChapterBo bo);

    CaricatureChapterVo selectLastChapterById(CaricatureChapterBo bo);

}
